using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OracleUtil
{
    public partial class FrmLogin : Form
    {
        public FrmLogin()
        {
            InitializeComponent();
        }

        private void FrmLogin_Load(object sender, EventArgs e)
        {
            txtUserName.Text = ConfigurationManager.AppSettings["username"];
            txtPassword.Text = ConfigurationManager.AppSettings["password"];
            txtDatabase.Text = ConfigurationManager.AppSettings["database"];
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            ConfigurationManager.AppSettings["username"] = txtUserName.Text;
            //txtPassword.Text = ConfigurationManager.AppSettings["password"];
            //txtDatabase.Text = ConfigurationManager.AppSettings["database"];
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        

        
    }
}